package com.leo.service.impl;

import com.leo.model.UserInfo;
import com.leo.service.UserInfoService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName: UserInfoServiceImpl
 * @Description: 简单的增删改查
 * @Author: leo825
 * @Date: 2020-01-02 11:24
 * @Version: 1.0
 */
@Service
public class UserInfoServiceImpl implements UserInfoService {


    @Override
    public void insertUserInfo(UserInfo userInfo) {
        System.out.println("执行insertUserInfo操作：" + userInfo.toString());
    }

    @Override
    public void deleteUserInfo(Integer id) {
        System.out.println("执行deleteUserInfo操作：" + id);
    }

    @Override
    public void updateUserInfo(Integer id, UserInfo newUserInfo) {
        System.out.println("执行updateUserInfo操作：[" + id + "] " + newUserInfo.toString());
    }

    @Override
    public List<UserInfo> getUserInfoList() {
        System.out.println("执行getUserInfoList操作");
        return null;
    }
}
